﻿
using Bootstrap5.Abstractions;

using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Rendering;

namespace Bootstrap5;

[CssClass("btn-close")]
[HtmlTag("button")]
public class CloseButton:BootstrapComponentBase
{
	[Parameter][CssClass("btn-close-white")]public bool White { get; set; }

	protected override void BuildExtraAttributes(RenderTreeBuilder builder, int sequence = 5)
	{
		builder.AddAttribute(sequence, "aria-label", "Close");
	}
}
